package com.java.thread.demo.chapter2.HasSelfPrivateNum;

/**
 * Created by yiyongyao on 2017/12/19.
 */
public class ThreadA extends Thread {

    private HasSelfPrivateNum numRef;

    public ThreadA(HasSelfPrivateNum numRef) {
        this.numRef = numRef;
    }

    @Override
    public void run() {
        super.run();
        numRef.addI("a");
    }
}
